<?php
// multiple recipients
$to  = 'matt.neilson@gmail.com' . ', '; // note the comma
$to .= 'mcneilso@spt.com';

// subject
$subject = 'DO NOT open at work - Test Transpo Email';

// message
$message = '
<html>
<head>
  <title>Test Transpo Email</title>
</head>
<body>
  <table border="0" style="padding:0px;" cellpadding="0" cellspacing="0">
    <tr>
      <td><img src="http://transpo.uconn.edu/images/blue_top.gif"></td>
      <td><img src="http://transpo.uconn.edu/images/banner.jpg"></td>
    </tr>
    <tr>
      <td colspan="2">
	    <table width="850"  border="0" cellspacing="5" cellpadding="0" style="border: 2px solid #000066;">
		  <tr>
		    <td>
			  <p style="margin: 10px; ">Good Morning Transportation,</p>
			  <p style="margin: 10px; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We have the following open shifts available for today, Wednesday, April 20th, 2005. If you would be interested in taking any of these shifts, in part or in whole, please contact dispatch at (860) 486-6924.</p>
			  <p style="margin: 10px; " align="center">
		      <table align="center">
				  <tr>
				    <td>Blue 1</td>
					<td>06:45 - 09:43</td>
				  </tr>
				  <tr>
				    <td>Green 2</td>
					<td>14:48 - 16:04</td>
				  </tr>
				  <tr>
				    <td>Red 1</td>
					<td>21:42 - 00:30</td>
				  </tr>
			  </table>
			  <p style="margin: 10px; " align="center">&nbsp;</p>
			  <hr>
			  <p style="margin: 10px; font-size:10px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This e-mail has been sent out automatically by the Transportation Online System. It has been sent to your email address through the TRANSPORTATION-L mailing list. To change the e-mail address that is listed on the mailing list, please contact the Assistant Manager of Operations, or the Manager.</p>
			</td>
		  </tr>
		</table>
	  </td>
    </tr>
  </table>
</body>
</html>

';

// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: Matthew Neilson <matt.neilson@gmail.com>, Matthew C Neilson <mcneilso@spt.com>' . "\r\n";
$headers .= 'From: Matthew Neilson <matt.neilson@gmail.com>' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);
?> 
<html>
<head>
  <title>Birthday Reminders for August</title>
</head>
<body>
  <table border="0" style="padding:0px;" cellpadding="0" cellspacing="0">
    <tr>
      <td><img src="http://transpo.uconn.edu/images/blue_top.gif"></td>
      <td><img src="http://transpo.uconn.edu/images/banner.jpg"></td>
    </tr>
    <tr>
      <td colspan="2">
	    <table width="850"  border="0" cellspacing="5" cellpadding="0" style="border: 2px solid #000066;">
		  <tr>
		    <td>
			  <p style="margin: 10px; ">Good Morning Transportation,</p>
			  <p style="margin: 10px; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We have the following open shifts available for today, Wednesday, April 20th, 2005. If you would be interested in taking any of these shifts, in part or in whole, please contact dispatch at (860) 486-6924.</p>
			  <p style="margin: 10px; " align="center">
		      <table align="center">
				  <tr>
				    <td>Blue 1</td>
					<td>06:45 - 09:43</td>
				  </tr>
				  <tr>
				    <td>Green 2</td>
					<td>14:48 - 16:04</td>
				  </tr>
				  <tr>
				    <td>Red 1</td>
					<td>21:42 - 00:30</td>
				  </tr>
			  </table>
			  <p style="margin: 10px; " align="center">&nbsp;</p>
			  <hr>
			  <p style="margin: 10px; font-size:10px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This e-mail has been sent out automatically by the Transportation Online System. It has been sent to your email address through the TRANSPORTATION-L mailing list. To change the e-mail address that is listed on the mailing list, please contact the Assistant Manager of Operations, or the Manager.</p>
			</td>
		  </tr>
		</table>
	  </td>
    </tr>
  </table>
</body>
</html>
